import { request } from '@/utils/http'
import type { userInfoInt, userInfoIntXcx, phoneKeyIntXcx } from './types'

export function loginApi(data: userInfoInt) {
    return request.http({
        url: '/lxx/login',
        data,
        isSinglePost: true // 是否是单例模式默认可不传de
    })
}

export function loginApiXcx(data: userInfoIntXcx) {
    return request.http({
        url: '/api/v1.login/xcxLogin',
        data,
        isSinglePost: true
    })
}

// 获取手机号补全信息
export function editPhoneApi(data: phoneKeyIntXcx) {
    return request.http({
        url: '/api/v1.login/getUserPhone',
        data
    })
}
